package com.ruoyi.project.system.domain;

import java.math.BigDecimal;

import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 查询产品对象 siyu_product
 *
 * @author ruoyi
 * @date 2024-10-28
 */
@Data
public class SiyuProduct extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 产品ID
     */
    private Integer id;

    /**
     * 产品编码
     */
    @Excel(name = "产品编码")
    private String code;

    @Excel(name = "查询分类")
    private Integer sort;

    /**
     * 产品名称
     */
    @Excel(name = "产品名称")
    private String name;

    /**
     * 产品描述
     */
    @Excel(name = "产品描述")
    private String explain;

    /**
     * 产品类型
     */
    @Excel(name = "产品类型")
    private String type;

    /**
     * 上游价格
     */
    @Excel(name = "上游价格")
    private BigDecimal originalPrice;

    /**
     * 本系统价格
     */
    @Excel(name = "本系统价格")
    private BigDecimal unitPrice;

    /**
     * 状态（0正常 1停用）
     */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    public SiyuProduct() {
    }

    public SiyuProduct(String name) {
        this.name = name;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("code", getCode())
                .append("name", getName())
                .append("explain", getExplain())
                .append("type", getType())
                .append("originalPrice", getOriginalPrice())
                .append("unitPrice", getUnitPrice())
                .append("status", getStatus())
                .append("createTime", getCreateTime())
                .append("updateTime", getUpdateTime())
                .toString();
    }
}
